﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

/// <summary>
/// 美术资源导入设置（暂时只有一条规则，后续逐渐添加）
/// </summary>
public class CustomImportSettings : AssetPostprocessor
{
    //新增导入资源自动设置
    private void OnPreprocessModel()
    {
        var importer = (ModelImporter)assetImporter;
        //不导入新材质（对Arts/Resource目录生效）
        importer.materialImportMode = ModelImporterMaterialImportMode.None;
    }
}